GetHour Function

public function GetHour(time) result(hour)

Gets the month of the datetime represented by this instance

Arguments

Type IntentOptional Attributes Name
type(DateTime), intent(in) :: time

Return Value integer(kind=short)


Source Code

FUNCTION  GetHour &
!
(time) &
!
RESULT (hour)

IMPLICIT NONE

! Arguments with intent(in):
TYPE (DateTime), INTENT(IN) :: time

! Local variables:
INTEGER (KIND = short) :: hour

!------------end of declaration------------------------------------------------

hour = time % hour

END FUNCTION GetHour